<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.Calendar"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/icon.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/style.css"/>">

<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/script.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/zzsc.js"/>"></script>
</head>
<body>
<style>
ol,li{
          float: left;
     }
</style>
<script type="text/javascript">

	//打开电子病历选择挂号窗口
	$("#btn-cy_dzcf").linkbutton({onClick: function(){
		$('#cy-win-Dzbl-register').window({
			'title' : "选择挂号",
			'href' : "cy_dzbl_register"
		});
		$("#cy-win-Dzbl-register").window("open");
		
	}}); 
	
	//打开电子病历选择电子病历窗口
	$("#cy_btn_dzcf_select").linkbutton({onClick: function(){
		$('#cy-win-xzDzbl-register').window({
			'title' : "选择电子病历",
			'href' : "cy_xzdzcf_prescription"
		});
		$("#cy-win-xzDzbl-register").window("open");
		
	}}); 
	

	//打开电子病历选择员工窗口
	$("#btn-dzbl_cyemployees").linkbutton({onClick: function(){
		$('#cy-win-dzbl_employees').window({
			'title' : "选择员工",
			'href' : "cy_his_dzbl_employees"
		});
		$("#cy-win-dzbl_employees").window("open");
		
	}}); 
	
	//打开电子病历选择药品窗口
	$("#btn-dzbl_xzyf").linkbutton({onClick: function(){
		$('#cy-win-dzbl_xzyf').window({
			'title' : "选择药房",
			'href' : "cy_his_selectdrugs"
		});
		$("#cy-win-dzbl_xzyf").window("open");
		
	}}); 
	
	
	//打开电子病历选择收费项目窗口
	$("#btn-dzbl_ylxm").linkbutton({onClick: function(){
		$('#cy-win-Dzbl-sfxm').window({
			'title' : "选择收费项目",
			'href' : "cy_his_ylxm"
		});
		$("#cy-win-Dzbl-sfxm").window("open");
		
	}});
	
	//打开电子病历浏览表单窗口
	$("#cy_btn_dzcfdyyl").linkbutton({onClick: function(){
		var dzcfno = $("#cydzcfNo").textbox('getValue');
		var ghno = $("#ghNo").textbox('getValue');
		var dzcfdate = $("#cydzcfDate").datebox('getValue');
		var dzcftype = $("#cydzcfType").combobox('getValue');
		var name = $("#brName").textbox('getValue');
		var ygname = $("#cyygName").textbox('getValue');
		var ks = $("#ksName").combobox('getValue');
		var sex = $("#brSex").textbox('getValue');
		var age = $("#brAge").textbox('getValue');
		$('#cy-win-Dzbl-dyyl').window({
			'title' : "浏览表单",
			'href' : "cy_electronic_print?dzcfNo="+dzcfno+"&ghNo="+ghno
			+"&dzcfDate="+dzcfdate+"&dzcfType="+dzcftype+"&brName="+name
			+"&ksName="+ks+"&cybrSex="+sex+"&brAge="+age+"&dzfcDoctor="+ygname
		});
		$("#cy-win-Dzbl-dyyl").window("open");
		
	}}); 
	
	//新建电子病历
	$("#cy_btn_dzblxj").linkbutton({onClick: function(){
		$('#ghNo').textbox("clear");	
		$('#brName').textbox("clear");
		$('#brAge').textbox("clear");
		$('#cyygName').textbox("clear");
		$('#cpNo').textbox("clear");
		$('#cpName').textbox("clear");
		$('#cfkyExplain').textbox("clear");
		$('#dzcfMoney').textbox("clear");
		$('#sfxmNo').textbox("clear");
		$('#ylxmName').textbox("clear");
		$('#cfkyNum').numberbox('setValue',0.00);
		$('#ygxqSaleprice').numberbox('setValue',0.00);
		$('#cfkyMoney').numberbox('setValue',0.00);
		$('#ylxmNum').numberbox('setValue',0.00);
		$('#ylxmprice').numberbox('setValue',0.00);
		$('#ylxmmoney').numberbox('setValue',0.00);
	}});
	
	
	//关闭电子病历
	$("#cy_btn_dzblqx").linkbutton({onClick: function(){
		$('#win-dzcf').window('close');	
								
	}});
	
	 //通过onChange计算出处方开药金额和处方金额
	$("#cfkyNum").numberbox({onChange:function(n,o){
		var price = $("#ygxqSaleprice").numberbox('getValue');
		var number = $("#cfkyNum").numberbox('getValue');
		var money = $("#cfkyMoney").numberbox('setValue',price * number);
	}})

	
	 //通过onChange计算出医疗项目金额和处方金额
	$("#ylxmNum").numberbox({onChange:function(n,o){
		var price = $("#ylxmprice").numberbox('getValue');
		var number = $("#ylxmNum").numberbox('getValue');
		var money = $("#ylxmmoney").numberbox('setValue',price * number);
	}})
	
	
	//动态添加处方开药表格获取查询的值
	$("#dzbl_addyp").linkbutton({onClick:function(){
		    var n = $("#cpNo").textbox('getValue');
		    var cfkyNo = $("#cpNo").textbox('getText');
		    var sl = $("#cfkyNum").textbox('getText')
		    if(!cfkyNo){
		    	$.messager.alert('His六医院','处方药品编号不能为空，请核对！信息！','info');
		    }else if(sl==0){
		    	$.messager.alert('His六医院','你好，处方药品数量不能为零，请核对！信息！','info');
		    	$("#cfkyNum").numberbox('clear');
		    }else {
			$.getJSON('CyHisPrescriptionPrescriptionjr',{
				'ygxqNo':n			
			},function(data){
				var cpNo = $("#cpNo").textbox('getValue');
				var cpName = $("#cpName").textbox('getValue');
				var cfkyExplain = $("#cfkyExplain").textbox('getValue');
				var cfkyNum = $("#cfkyNum").numberbox('getValue');
				var ygxqSaleprice = $("#ygxqSaleprice").numberbox('getValue');
				var cfkyMoney = $("#cfkyMoney").numberbox('getValue');
		        $('#dzbl_cfky').datagrid('appendRow', {
					'cfkyType' : [data.cfkyType],
					'cpNo' : cpNo,
					'cpName' : cpName,
					'cfkyNum' : cfkyNum,
					'cfkyMoney':cfkyMoney,
					'cfkyState' : [data.cfkyState],
					'cfkyUnit':[data.cfkyUnit],
					'ygxqSaleprice':ygxqSaleprice,
					'cfkyExplain':cfkyExplain
					
				});
		        
		        //获取返回当前页的行的金额在把金额相加
		        var mon = 0;
		        var rows = $("#dzbl_cfky").datagrid('getRows');		   
			    for(var i=0;i<rows.length;i++){
			    	var r = rows[i].cfkyMoney;
			    	mon = mon+parseInt(r);			
			    }
			    $("#dzcfMoney").numberbox('setValue',mon); 
		   
		         $("#cpNo").textbox('clear');
				 $("#cpName").textbox('clear');
				 $("#cfkyExplain").textbox('clear');
				 $("#cfkyNum").numberbox('clear');
				 $("#ygxqSaleprice").numberbox('clear');
			     $("#cfkyMoney").numberbox('clear');
			});	
			
		  }
	}})
	
	
	//动态添加医疗项目表格获取查询的值
	$("#btn_dzbl_ylxmadd").linkbutton({onClick:function(){
		    var n = $("#sfxmNo").textbox('getValue');
		    var ylxmNo = $("#sfxmNo").textbox('getText');
		    var sl = $("#ylxmNum").textbox('getText')
		    if(!ylxmNo){
		    	$.messager.alert('His六医院','医疗项目编号不能为空，请核对！信息！','info');
		    }else {
			$.getJSON('CyHisChargingItemjr',{
				'sfxmNo':n			
			},function(data){
				alert(data.sfxmType)
				var sfxmNo = $("#sfxmNo").textbox('getValue');
				var ylxmName = $("#ylxmName").textbox('getValue');
				var ylxmNum = $("#ylxmNum").textbox('getValue');
				var ylxmprice = $("#ylxmprice").numberbox('getValue');
				var ylxmmoney = $("#ylxmmoney").numberbox('getValue');
		        $('#cytb_ylxm_add').datagrid('appendRow', {
					'sfxmType' : [data.sfxmType],
					'sfxmNo' : sfxmNo,
					'ylxmName' : ylxmName,
					'ylxmNum' : ylxmNum,
					'ylxmmoney':ylxmmoney,
					'sfjlDepartment' : [data.sfjlDepartment],
					'ylxmprice':ylxmprice,
					'sfxmUnit':[data.sfxmUnit]
				});
		        $("#sfxmNo").textbox('clear');
				$("#ylxmName").textbox('clear');
				$("#ylxmNum").textbox('clear');
				$("#ylxmprice").numberbox('clear');
				$("#ylxmmoney").numberbox('clear');
			});	
		    }
	}})
	
	
	//多行删除处方开药表格的数据
	$("#cy_btn_dzblcfdl").linkbutton({onClick:function(){
		var cyn = $("#dzbl_cfky").datagrid('getSelections');
		for(var i=0;i<cyn.length;i++){				
			var cynn = $("#dzbl_cfky").datagrid('getRowIndex',cyn[i]);
			$('#dzbl_cfky').datagrid('deleteRow',
					cynn);
		}
	}})
	
	
	//多行删除医疗项目表格的数据
	$("#cy_btn_ylxmsc").linkbutton({onClick:function(){
		var cyn = $("#cytb_ylxm_add").datagrid('getSelections');
		for(var i=0;i<cyn.length;i++){					
			var cynn = $("#cytb_ylxm_add").datagrid('getRowIndex',cyn[i]);
			$('#cytb_ylxm_add').datagrid('deleteRow',
					cynn);
		}
	}})
	
	
	//电子病历处理
	$("#cy_btn_dzblcl").linkbutton({onClick:function(){
		var name = $("#brName").textbox('getText');
		var cyygName = $("#cyygName").textbox('getText');
		var rowdzbl = $("#dzbl_cfky").datagrid('getRows');
		var rowylxm = $("#cytb_ylxm_add").datagrid('getRows');
		var dzbl = [];
		var ylxm = [];
	    for(var i=0;i<rowdzbl.length;i++){
	    	dzbl.push(rowdzbl[i].cpNo);	
	    	dzbl.push(rowdzbl[i].cpName);	
	    	dzbl.push(rowdzbl[i].cfkyNum);	
	    	dzbl.push(rowdzbl[i].cfkyMoney);
	    	dzbl.push(rowdzbl[i].cfkyState);	
	    	dzbl.push(rowdzbl[i].cfkyUnit);
	    	dzbl.push(rowdzbl[i].ygxqSaleprice);	
	    	dzbl.push(rowdzbl[i].cfkyExplain);
	    	dzbl.push(rowdzbl[i].sfxmType);
	    	dzbl.push(rowdzbl[i].cfkyType);
	    }
	    for(var i=0;i<rowylxm.length;i++){
	    	ylxm.push(rowylxm[i].sfxmNo);	
	    	ylxm.push(rowylxm[i].ylxmName);	
	    	ylxm.push(rowylxm[i].ylxmNum);	
	    	ylxm.push(rowylxm[i].ylxmmoney);
	    	ylxm.push(rowylxm[i].sfjlDepartment);	
	    	ylxm.push(rowylxm[i].ylxmprice);
	    	ylxm.push(rowylxm[i].cfkyType);
	    	ylxm.push(rowylxm[i].sfxmUnit);
	    	ylxm.push(rowylxm[i].sfxmState);
	    	ylxm.push(rowylxm[i].sfxmType);
	    }
		if(!name){
		$.messager.alert('His六医院','数据不完整，请重新核对，O(∩_∩)O谢谢','info');
		}else if(!cyygName){
		$.messager.alert('His六医院','经办人未选择，请核对，O(∩_∩)O谢谢','info');
		}else{
		$("#cy_form_dzbl").form('submit', {
			url : 'HisElectronicPrescriptionAdd',
			onSubmit : function(param) {
				param.arrd=dzbl,param.arry=ylxm;
			},
			success : function(data) {
				$('#dzcfState').combobox('setValue', '已处理');
				var json = eval("(" + data + ")");
				
				//多行删除处方开药表格的数据
				for(var i=0;i<rowdzbl.length;i++){				
					var cynn = $("#dzbl_cfky").datagrid('getRowIndex',rowdzbl[i]);
							   $('#dzbl_cfky').datagrid('deleteRow',
								 cynn);				   	   
				}
				
				//多行删除医疗项目表格的数据
				for(var i=0;i<rowylxm.length;i++){				
					var cynn = $("#cytb_ylxm_add").datagrid('getRowIndex',rowylxm[i]);
							   $('#cytb_ylxm_add').datagrid('deleteRow',
								 cynn);				   	   
				}
				
				$.messager.alert("提示", json.reason);
				$.messager.confirm('His六医院', '你好，请问是否打印电子病历单？', function(r){
					if (r){
						$("#cy-win-Dzbl-dyyl").window("open");
					}
				})
			}
		});	
		}
	}})
	
	//局部打印
	function printHtml(html){ 
	    var bodyHtml = document.body.innerHTML;
	    document.body.innerHTML=html;
	    window.print();
	    document.body.innerHTML=bodyHtml;		    
	}
	//调用局部打印方法
	function dzcfonprint(){
		var html = $("#dzblprintArea").html();
		$("#cy-win-register_print").window("close");
		printHtml(html);
		location.reload(true);
	}
</script>

		<div class="easyui-layout" data-options="fit:true">
			<div data-options="region:'north',height:'35px',border:false">
			    <div class="btn-add">
			    	<a id="cy_btn_dzblxj" class="easyui-linkbutton" 
			    		data-options="iconCls:'icon-add',width: '80px'">新建</a> 
			    		&nbsp;
			    		
			    	<a id="cy_btn_dzcf_select" class="easyui-linkbutton" 
			    		data-options="iconCls:'icon-open',width: '80px'">查看</a> 	
			    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			    			
			    	<a style="position: relative;left: 140px;" id="cy_btn_dzblcl" class="easyui-linkbutton" 
			    		data-options="iconCls:'icon-handle',width: '80px'">处理</a>
			    		&nbsp;
			    		
			    	<a style="position: relative;left: 270px;" id="cy_btn_dzcfdyyl" class="easyui-linkbutton" 
			    		data-options="iconCls:'icon-print',width: '80px'">打印</a>	
			    		&nbsp;
			    		
			    	<a style="position: relative;left: 280px;" id="cy_btn_dzblqx" class="easyui-linkbutton" 
			    		data-options="iconCls:'icon-cancel',width: '80px'">取消</a>
			    				
			    </div>			    
			</div>	
			
			<div data-options="region:'center'">
				<form id="cy_form_dzbl" method="post">
					<div class="" style="background: rgb(236,243,255);height: 112px;">
					     <ol style="height:110px;">
					      	<li style="margin: 0px; padding: 15px;position: relative;left: 15px;">处方号&nbsp;
					      		<input id="cydzcfNo" readonly="readonly" value="${ElectronicPrescription }" name="dzcfNo" class="easyui-textbox"
								data-options="width: 100"></li>
								
							<li style="margin: 0px;padding: 15px;position: relative;left: 45px;">状态&nbsp;
								<select id="dzcfState" readonly="readonly" name="dzcfState" class="easyui-combobox"  
					     		data-options="panelHeight: 'auto'" id=""  style="width: 80px;">
								<option value="未处理">未处理</option>
								<option value="已处理">已处理</option>
								</select></li>
								
							<li style="margin: 0px;padding: 15px;position: relative;left: 55px;">处方类型&nbsp;
								<select id="cydzcfType" readonly="readonly" name="dzcfType" class="easyui-combobox"  
					     		data-options="panelHeight: 'auto'" id=""  style="width: 80px;">
								<option value="门诊处方">门诊处方</option>
								</select></li>
										
							<li style="margin: 0px;padding: 15px;position: relative;left: 65px;">处方日期&nbsp;
								<input id="cydzcfDate" name="dzcfDate" value="new date" class="easyui-datebox"
								data-options="width: 100"></li>
								
							<li style="margin: 0px;padding: 15px;position: relative;left: 15px;bottom: 25px;">门诊号&nbsp;
					      		<input readonly="readonly" id="ghNo" name="ghNo" class="easyui-textbox"
								data-options="width: 100">
								
								<a id="btn-cy_dzcf" class="easyui-linkbutton" 
				    			data-options="iconCls:'icon-three',plain:true"></a></li>
								
							<li style="margin: 0px; padding: 15px;position: relative;left: 2px;bottom: 25px;">住院号&nbsp;
								<input id="cfzfNo"  name="zfNo" class="easyui-textbox"
								data-options="width: 79"></li>
								
							<li style="margin: 0px; padding: 15px;position: relative;left: 15px;bottom: 25px;">医嘱执行&nbsp;
								<select readonly="readonly" name="dzcfOrderFiller" class="easyui-combobox"  
					     		data-options="panelHeight: 'auto'" id=""  style="width: 80px;">
								<option value="Y">Y</option>
								<option value="N">N</option>
								</select></li>
										
							<li style="margin: 0px; padding: 15px;position: relative;left: 48px;bottom: 25px;">科室&nbsp;
								<select readonly="readonly" id="ksName" name="dzcfDepartment" class="easyui-combobox"  
					     		data-options="panelHeight: 'auto'" id=""  style="width: 80px;">
								<option value="外科">外科</option>
								</select></li>
								
							<li style="margin: 0px;padding: 15px;position: relative;left: -200px;bottom: 50px;">病人姓名&nbsp;
					      		<input id="brName" name="brName" class="easyui-textbox"
								data-options="width: 100"></li>
								
							<li style="margin: 0px; padding: 15px;position: relative;left: -172px;bottom: 50px;">性别&nbsp;
								<select id="brSex"  name="brSex" class="easyui-combobox"  
					     		data-options="panelHeight: 'auto'" id=""  style="width: 80px;">
								<option value="男">男</option>
								<option value="女">女</option>
								</select></li>
								
							<li style="margin: 0px; padding: 15px;position: relative;left: -155px;bottom: 50px;">年龄&nbsp;
								<input id="brAge" name="brAge"  class="easyui-textbox"
								data-options="width: 100"></li>
										
							<li style="margin: 0px; padding: 15px;position: relative;left: 545px;bottom: 105px;">处方医生&nbsp;
								<input id="cyygName" name="dzfcDoctor" class="easyui-textbox"
								data-options="width: 100">
								
								<a id="btn-dzbl_cyemployees" class="easyui-linkbutton" 
				    			data-options="iconCls:'icon-three',plain:true"></a></li>		
																												
					     </ol>
					</div>
					
					<div id="tt" class="easyui-tabs" data-options="border:false,panelHeight:'auto'" style="width: 100%;height: 300px;overflow: hidden;">
	
						<div id="" title="处方开药" style="width: 100%;overflow: hidden;">
							<div style="overflow: hidden;">
								<ol style="height:85px ;">
									<li style="padding: 25px;position: relative;bottom: 15px;">药品&nbsp;
									
						      		<input id="cpNo" name="cpNo" class="easyui-textbox"
									data-options="width: 150">
									
									<input id="cpName" name="cpName" class="easyui-textbox"
									data-options="width: 150">
									
									<a id="btn-dzbl_xzyf" class="easyui-linkbutton" 
					    			data-options="iconCls:'icon-three',plain:true"></a>
									&nbsp;&nbsp;
									
									使用说明&nbsp;
									<input id="cfkyExplain" name="cfkyExplain"  class="easyui-textbox"
									data-options="width: 100">
									
									&nbsp;&nbsp;
						    		处方金额&nbsp;
									<input readonly="readonly" id="dzcfMoney" name="dzcfMoney" class="easyui-numberbox"
									data-options="width: 100,precision:2"></li>
									
									<li style="padding: 25px;position: relative;bottom: 55px;">
									
									数量&nbsp;			      		
						      		<input id="cfkyNum" name="cfkyNum" value="0.00" name="sfxmMoney" class="easyui-numberbox"
									data-options="width: 80,precision:2">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									
									单价&nbsp;						
						      		<input readonly="readonly" id="ygxqSaleprice" name="ygxqSaleprice" value="0.00" class="easyui-numberbox"
									data-options="width: 80,precision:2">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									
									金额&nbsp;						
						      		<input readonly="readonly" id="cfkyMoney" name="cfkyMoney" value="0.00" class="easyui-numberbox"
									data-options="width: 80,precision:2">
									&nbsp;&nbsp;
																
									<a id="dzbl_addyp" class="easyui-linkbutton" 
						    		data-options="iconCls:'icon-cy-charge',width: '80px'">加入</a> 
							    						    		
						    		<a style="position: relative;left: 88px;" id="cy_btn_dzblcfdl" class="easyui-linkbutton" 
						    		data-options="iconCls:'icon-cancel',width: '80px'">删除</a>
						    		
						    		<input type="hidden" readonly="readonly" id="ygxqNo" name="ygxqNo" 
						    		 	   style="width: 30px;position: relative;right: 30px">
						    		 	   
						    		<input type="hidden" readonly="readonly" id="yfNo" name="yfNo"
						    		 	   style="width: 30px;position: relative;right: 30px"> 	
						    		 
						    		<input type="hidden" readonly="readonly" id="yfxqUnitss" name="yfxqUnit" 
						    		 	   style="width: 30px;position: relative;right: 30px">
						    		 
						    		<input type="hidden" readonly="readonly" id="ygxqNumber" name="ygxqNumber" 
						    		 	   style="width: 30px;position: relative;right: 30px">
						    		 
						    		<input type="hidden" readonly="readonly" id="ygxqPurchaseprice" name="ygxqPurchaseprice" 
						    		 	   style="width: 30px;position: relative;right: 30px">	
						    		 	      
						    		<input readonly="readonly" id="ygxqSalepricess" name="ygxqSalepricess" 
						    		 	   style="width: 30px;position: relative;right: 30px">		   	   	      
						    		 	   
						    		</li>
						    		
						    		
								</ol>
							</div>	
						<div style="overflow: hidden;">
							<table  id="dzbl_cfky" class="easyui-datagrid" 
								data-options="
										iconCls: 'icon-edit',							                
										width: '100%',
										border: false,
									    height:'190px',
										pagination: true,
										pageSize: 5,
										pageList: [5, 10, 15, 20],
										rownumbers: true,
									
									">
								<thead>
									<tr>
										<th
											data-options="field:'cfkyType',width:'10%',editor:'textbox'">类型</th>
										<th
											data-options="field:'cpNo',width:'15%',editor:'textbox'">收费项目编号</th>
										<th
											data-options="field:'cpName',width:'15%',editor:'textbox'">收费项目名称</th>
										<th
											data-options="field:'cfkyNum',width:'10%',editor:'textbox'">数量</th>
										<th
											data-options="field:'cfkyMoney',width:'10%',editor:'textbox'">金额</th>
										<th
											data-options="field:'cfkyState',width:'10%',editor:'textbox'">状态</th>	
										<th
											data-options="field:'cfkyUnit',width:'10%',editor:'textbox'">单位</th>	
										<th
											data-options="field:'ygxqSaleprice',width:'10%',editor:'textbox'">单价</th>	
										<th
											data-options="field:'cfkyExplain',width:'10%',editor:'textbox'">使用说明</th>		
										</tr>	
									</tr>
								  </thead>
							 </table>
						 </div>											
					</div>
		
						<div id="cy_sfxmopen" title="医疗项目" style="width: 100%;height: 305px;overflow: hidden;">
							<div style="overflow: hidden;">						
								<ol style="height:85px ;">
									<li style="padding: 25px;position: relative;bottom: 15px;">项目&nbsp;
									
						      		<input id="sfxmNo" name="sfxmNo" class="easyui-textbox"
									data-options="width: 150">
									
									<input id="ylxmName" name="sfxmName" class="easyui-textbox"
									data-options="width: 150">
									
									<a id="btn-dzbl_ylxm" class="easyui-linkbutton" 
						    			data-options="iconCls:'icon-three',plain:true"></a></li>
									
									<li style="padding: 25px;position: relative;bottom: 55px;">数量&nbsp;
						      		
						      		<input id="ylxmNum" value="0.00" name="sfxmMoney" class="easyui-numberbox"
									data-options="width: 80,precision:2">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									
									单价&nbsp;						
						      		<input id="ylxmprice" readonly="readonly"  value="0.00" class="easyui-numberbox"
									data-options="width: 80,precision:2">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									
									金额&nbsp;						
						      		<input readonly="readonly" id="ylxmmoney" name="mztfRefundableAmount" value="0.00" class="easyui-numberbox"
									data-options="width: 80,precision:2">
									&nbsp;&nbsp;
									<a id="btn_dzbl_ylxmadd" class="easyui-linkbutton" 
						    		data-options="iconCls:'icon-cy-charge',width: '80px'">加入</a> 
							    						    		
						    		<a style="position: relative;left: 88px;" id="cy_btn_ylxmsc" class="easyui-linkbutton" 
						    		data-options="iconCls:'icon-cancel',width: '80px'">删除</a></li>
								</ol>	
							</div>
							
							<div style="overflow: hidden;">						
								<table  id="cytb_ylxm_add" class="easyui-datagrid" 
								data-options="
										iconCls: 'icon-edit',							                
										width: '100%',
										border: false,
										height:'190px',
										pagination: true,
										pageSize: 5,
										pageList: [5, 10, 15, 20],
										rownumbers: true,	
									">
								<thead>
									<tr>
										<th
										data-options="field:'sfxmType',width:'15%',editor:'textbox'">类型</th>
									<th
										data-options="field:'sfxmNo',width:'15%',editor:'textbox'">收费项目编号</th>
									<th
										data-options="field:'ylxmName',width:'15%',editor:'textbox'">收费项目名称</th>
									<th
										data-options="field:'ylxmNum',width:'10%',editor:'textbox'">数量</th>
									<th
										data-options="field:'ylxmmoney',width:'10%',editor:'textbox'">金额</th>
									<th
										data-options="field:'sfjlDepartment',width:'17%',editor:'textbox'">状态</th>	
									<th
										data-options="field:'ylxmprice',width:'15%',editor:'textbox'">单价</th>	
								</thead>
							</table>
						</div>							
				  </div>
		
					<div id="cy_Patient_data" title="诊断医嘱" data-options=""
							style="padding: 10px">
							
							<ol>
							<li style="padding: 5px;">医嘱执行号&nbsp;						
					      		<input readonly="readonly" value="${HisOutpatientDoctor }" id="mzyzNo" name="mzyzNo" class="easyui-textbox"
									data-options="width: 150">
								
								&nbsp;医嘱类型&nbsp;						
					      		<select id="mzyzType" name="mzyzType" class="easyui-combobox"  
						     		data-options="panelHeight:'auto'"
						     		style="width: 100px;">
				                    <option>临时医嘱</option>
				                    <option>长期医嘱</option>
									</select>
								
								&nbsp;医嘱状态&nbsp;						
					      		<select id="mzyzState" name="mzyzState" class="easyui-combobox"  
						     		data-options="panelHeight:'auto'"
						     		style="width: 100px;">
				                    <option>正常</option>
				                    <option>停用</option>
									</select>
								
							<li style="">					
					      		<input id="sfxmNo" name="sfxmNo" class="easyui-textbox"
								data-options="width: 750,height:200"></li>
							</ol>			
						</div>	
					</div>
			  </form>
		 </div>				  
	 </div>
		
	<!-- 电子病历员工窗口 -->
	<div id="cy-win-dzbl_employees" class="easyui-window" title="选择员工"
		data-options="collapsible:false,minimizable:false,maximizable:false,modal:true,iconCls:'icon-registered',closed: true"
		style="width: 800px; height: 500px; padding: 5px;">

	</div>
	
	<!-- 电子病历选择药房窗口 -->
	<div id="cy-win-dzbl_xzyf" class="easyui-window" title="选择药品"
		data-options="collapsible:false,minimizable:false,maximizable:false,modal:true,iconCls:'icon-registered',closed: true"
		style="width: 800px; height: 500px; padding: 5px;">

	</div>	
	
	<!-- 电子病历的选择挂号 -->
	<div id="cy-win-Dzbl-register" class="easyui-window" title="选择挂号"
		data-options="collapsible:false,minimizable:false,maximizable:false,modal:true,iconCls:'icon-registered',closed: true"
		style="width: 800px; height: 280px; padding: 5px;">

	</div>	
	
	<!-- 电子病历的选择收费项目 -->
	<div id="cy-win-Dzbl-sfxm" class="easyui-window" title="选择收费项目"
		data-options="collapsible:false,minimizable:false,maximizable:false,modal:true,iconCls:'icon-registered',closed: true"
		style="width: 800px; height: 500px; padding: 5px;">

	</div>
	
	<!-- 电子病历的选择电子病历-->
	<div id="cy-win-xzDzbl-register" class="easyui-window" title="选择电子病历"
		data-options="collapsible:false,minimizable:false,maximizable:false,modal:true,iconCls:'icon-registered',closed: true"
		style="width: 800px; height: 280px; padding: 5px;">

	</div>
	
	<!-- 电子病历的浏览表单 -->
	<div id="cy-win-Dzbl-dyyl" class="easyui-window" title="浏览表单"
		data-options="tools:'#dyyl',collapsible:false,minimizable:false,maximizable:false,modal:true,iconCls:'icon-registered',closed: true"
		style="width: 800px; height: 500px; padding: 5px;">

	</div>
	
	<div id="dyyl">
    
	    <a href="#" title="打印" id='plan-printyl' class="icon-print" style="cursor: pointer;" onclick="dzcfonprint()"></a>

    </div>	
</body>
</html>